package top.lshaci.learning.spring5.factorybean;

import org.springframework.beans.factory.FactoryBean;
import top.lshaci.learning.spring5.model.User;

/**
 * MyBean
 *
 * @author lshaci
 * @date 2020/8/20 10:06
 * @since 1.0.0
 */
public class MyBean implements FactoryBean<User> {

    @Override
    public User getObject() throws Exception {
        User user = new User("用工厂创建的");

        return user;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }
}
